<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
</head>
<style>
body
{
    background-color:#d0e4fe;
    text-align:center;
}
.login_btn{width:146px;height:30px;}
</style>
<body>
<script type="text/javascript">
	function show() {
		var uname = document.getElementById("uname");
		var pwd = document.getElementById("pwd");
	if(uname.value == "" || pwd.value == ""){
		alert("错误填写");
		return false;
		}
	return true;
		}      
</script>
		<form action="<%=request.getContextPath()%>/AdminController?action=login"method="post" onsubmit="return show()">
		用户名：<input name="user" type="text" id="uname"/><br/><br/>
	             密&nbsp;&nbsp;&nbsp;码：<input name="password" type="password" id="pwd"/><br/><br/>
		<input type="submit" value="登录" />
		<input type="reset" value="重置" />
</form>
</body>
</html>
